package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * EipNoticeInfoId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoId implements java.io.Serializable {

	// Fields

	private Long niid;
	private Integer pubId;
	private Integer dptid;
	private String dptname;
	private String subject;
	private String content;
	private String publisher;
	private String pubDate;
	private Integer flag;
	private Integer itid;
	private String reader;
	private Timestamp createdate;
	private String readerid;
	private Integer isdel;
	private Integer tid;

	// Constructors

	/** default constructor */
	public EipNoticeInfoId() {
	}

	/** minimal constructor */
	public EipNoticeInfoId(Long niid, Integer itid) {
		this.niid = niid;
		this.itid = itid;
	}

	/** full constructor */
	public EipNoticeInfoId(Long niid, Integer pubId, Integer dptid,
			String dptname, String subject, String content, String publisher,
			String pubDate, Integer flag, Integer itid, String reader,
			Timestamp createdate, String readerid, Integer isdel, Integer tid) {
		this.niid = niid;
		this.pubId = pubId;
		this.dptid = dptid;
		this.dptname = dptname;
		this.subject = subject;
		this.content = content;
		this.publisher = publisher;
		this.pubDate = pubDate;
		this.flag = flag;
		this.itid = itid;
		this.reader = reader;
		this.createdate = createdate;
		this.readerid = readerid;
		this.isdel = isdel;
		this.tid = tid;
	}

	// Property accessors

	public Long getNiid() {
		return this.niid;
	}

	public void setNiid(Long niid) {
		this.niid = niid;
	}

	public Integer getPubId() {
		return this.pubId;
	}

	public void setPubId(Integer pubId) {
		this.pubId = pubId;
	}

	public Integer getDptid() {
		return this.dptid;
	}

	public void setDptid(Integer dptid) {
		this.dptid = dptid;
	}

	public String getDptname() {
		return this.dptname;
	}

	public void setDptname(String dptname) {
		this.dptname = dptname;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublisher() {
		return this.publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getPubDate() {
		return this.pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public Integer getFlag() {
		return this.flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getItid() {
		return this.itid;
	}

	public void setItid(Integer itid) {
		this.itid = itid;
	}

	public String getReader() {
		return this.reader;
	}

	public void setReader(String reader) {
		this.reader = reader;
	}

	public Timestamp getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Timestamp createdate) {
		this.createdate = createdate;
	}

	public String getReaderid() {
		return this.readerid;
	}

	public void setReaderid(String readerid) {
		this.readerid = readerid;
	}

	public Integer getIsdel() {
		return this.isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoId))
			return false;
		EipNoticeInfoId castOther = (EipNoticeInfoId) other;

		return ((this.getNiid() == castOther.getNiid()) || (this.getNiid() != null
				&& castOther.getNiid() != null && this.getNiid().equals(
				castOther.getNiid())))
				&& ((this.getPubId() == castOther.getPubId()) || (this
						.getPubId() != null
						&& castOther.getPubId() != null && this.getPubId()
						.equals(castOther.getPubId())))
				&& ((this.getDptid() == castOther.getDptid()) || (this
						.getDptid() != null
						&& castOther.getDptid() != null && this.getDptid()
						.equals(castOther.getDptid())))
				&& ((this.getDptname() == castOther.getDptname()) || (this
						.getDptname() != null
						&& castOther.getDptname() != null && this.getDptname()
						.equals(castOther.getDptname())))
				&& ((this.getSubject() == castOther.getSubject()) || (this
						.getSubject() != null
						&& castOther.getSubject() != null && this.getSubject()
						.equals(castOther.getSubject())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getPublisher() == castOther.getPublisher()) || (this
						.getPublisher() != null
						&& castOther.getPublisher() != null && this
						.getPublisher().equals(castOther.getPublisher())))
				&& ((this.getPubDate() == castOther.getPubDate()) || (this
						.getPubDate() != null
						&& castOther.getPubDate() != null && this.getPubDate()
						.equals(castOther.getPubDate())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getItid() == castOther.getItid()) || (this.getItid() != null
						&& castOther.getItid() != null && this.getItid()
						.equals(castOther.getItid())))
				&& ((this.getReader() == castOther.getReader()) || (this
						.getReader() != null
						&& castOther.getReader() != null && this.getReader()
						.equals(castOther.getReader())))
				&& ((this.getCreatedate() == castOther.getCreatedate()) || (this
						.getCreatedate() != null
						&& castOther.getCreatedate() != null && this
						.getCreatedate().equals(castOther.getCreatedate())))
				&& ((this.getReaderid() == castOther.getReaderid()) || (this
						.getReaderid() != null
						&& castOther.getReaderid() != null && this
						.getReaderid().equals(castOther.getReaderid())))
				&& ((this.getIsdel() == castOther.getIsdel()) || (this
						.getIsdel() != null
						&& castOther.getIsdel() != null && this.getIsdel()
						.equals(castOther.getIsdel())))
				&& ((this.getTid() == castOther.getTid()) || (this.getTid() != null
						&& castOther.getTid() != null && this.getTid().equals(
						castOther.getTid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getNiid() == null ? 0 : this.getNiid().hashCode());
		result = 37 * result
				+ (getPubId() == null ? 0 : this.getPubId().hashCode());
		result = 37 * result
				+ (getDptid() == null ? 0 : this.getDptid().hashCode());
		result = 37 * result
				+ (getDptname() == null ? 0 : this.getDptname().hashCode());
		result = 37 * result
				+ (getSubject() == null ? 0 : this.getSubject().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37 * result
				+ (getPublisher() == null ? 0 : this.getPublisher().hashCode());
		result = 37 * result
				+ (getPubDate() == null ? 0 : this.getPubDate().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getItid() == null ? 0 : this.getItid().hashCode());
		result = 37 * result
				+ (getReader() == null ? 0 : this.getReader().hashCode());
		result = 37
				* result
				+ (getCreatedate() == null ? 0 : this.getCreatedate()
						.hashCode());
		result = 37 * result
				+ (getReaderid() == null ? 0 : this.getReaderid().hashCode());
		result = 37 * result
				+ (getIsdel() == null ? 0 : this.getIsdel().hashCode());
		result = 37 * result
				+ (getTid() == null ? 0 : this.getTid().hashCode());
		return result;
	}

}